package com.fingerth.crawler.utils.stati

import android.util.Log
import com.fingerth.crawler.BuildConfig
import java.lang.StringBuilder

object L {
    fun v(msg: String) {
        if (BuildConfig.DEBUG) Log.v("fingerthx", msg)
    }

    fun l(msg: String, l: List<Any?>?) {
        if (BuildConfig.DEBUG) {
            if (!l.isNullOrEmpty()) {
                val sb = StringBuilder(msg).append(": [")
                for ((i, t) in l.withIndex()) {
                    if (i == 0) sb.append(t.toString()) else sb.append(" , ").append(t.toString())
                }
                sb.append("] ")
                v(sb.toString())
            } else v("空！！")
        }
    }
}